i = 0 # for循环里面不需要先定义变量
j = 0
for i in range(9):
    i += 1
    for j in range(i):
        j += 1
        print("%sX%s=%s "%(i,j,i*j),end=' ')
    print(' ')
